package com.hongning.railway.ui.main.fragments.cadremanagement.viewmodel;

import android.app.Application;
import android.databinding.ObservableField;
import android.support.annotation.NonNull;

import com.hongning.railway.data.AppRepository;
import com.hongning.railway.entity.reqbean.RosterBean;

import me.goldze.mvvmhabit.base.BaseViewModel;

public class CadreManagementRosterInfoViewModel extends BaseViewModel<AppRepository> {
    public ObservableField<RosterBean> rosterBeans= new ObservableField<>();
    public CadreManagementRosterInfoViewModel(@NonNull Application application, AppRepository model) {
        super(application, model);
    }

    public void setData(RosterBean rosterBean){
        rosterBeans.set(rosterBean);
    }
}
